var SUCCESS="success";
var FAILURE="failure";
var EXCEPTION="exception";
var NULLVALUE="nullvalue";
var BACK_URL="backUrl";
var PId="PId";//预案编号
var RId="RId";//角色编号
var RName="RName";//角色名
var NOREPORT = "1";
var REPORTING = "2";
var REPORTBACK = "3";
var REPORTPASS = "4";
var RELEASE = "5";
var PASSORRLE = "6";
var MATCHPLAN = "7";
var PAN="pan";//预案编号

var eventId="eventId";//事件编号
var eventStatus="eventStatus";//事件状态
var ppId="ppId";//呈批ID
var chooseTag="chooseTag";

function operateSucc(backUrl){
	setCookie(BACK_URL,backUrl);
	window.location.href="/ag/lzm/operate_succ.jsp";	
}

function operateSucc1(backUrl){
	setCookie(BACK_URL,backUrl);
	window.location.href="/ag/work/operate_succ.jsp";	
}

function setCookie(cookieName,cookieValue){
	var date = new Date(); 
	date.setTime(date.getTime() + (1 * 24 * 60 * 60 * 1000)); 
	$.cookie(cookieName, cookieValue, { path: '/', expires: date }); 
}

function getCookie(cookieName){
	//alert("gggg");
	return $.cookie(cookieName); 
}